class FixCreated < ActiveRecord::Migration
  
  def self.up
    change_column :tasks, :created_on, :datetime
    change_column :tasks, :updated_on, :datetime
    rename_column :tasks, :created_on, :created_at  
    rename_column :tasks, :updated_on, :updated_at
  end

  def self.down
    rename_column :tasks, :created_at, :created_on
    rename_column :tasks, :updated_at, :updated_on
    change_column :tasks, :created_on, :timestamp
    change_column :tasks, :updated_on, :timestamp
  end
  
end
